package cn.stu.cms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

import static cn.stu.cms.common.CommonConstants.NULL_MSG;

/**
 * (Roles)实体类
 *
 * @author gh
 * @date 2023/09/19
 * @since 2023-07-21 17:11:17
 */
@Data
public class Roles extends BaseEntity implements Serializable {

    /**
     * 角色标识
     */
    @TableId(type = IdType.AUTO)
    private Long roleId;

    /**
     * 角色名称
     */
    @NotBlank(message = NULL_MSG + "角色名称")
    private String roleName;

}

